package com.yonyou.jrmob.contacts.contact;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.yonyou.jrmob.contacts.R;

import jrmob.yonyou.com.commonlib.baseui.base.BaseActivityMob_lib;
import jrmob.yonyou.com.commonlib.app_config_tool.constant.Constant;
import jrmob.yonyou.com.commonlib.login.activity.LoginBaseActivity_lib;


public class MainActivity_ct extends BaseActivityMob_lib {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_ct);

        initView();
        initListener();
        initData();

    }

    @Override
    public void initView() {

        //
        // 到登陆页面
        final Intent intent = new Intent(this,LoginBaseActivity_lib.class);
        Bundle bundle = new Bundle();
        bundle.putString(Constant.type, Constant.contactstype); // 表示来自于哪儿
        bundle.putString(Constant.packagename, "com.yonyou.jrmob.contacts");
        bundle.putString(Constant.openactivity, "com.yonyou.jrmob.contacts.contact.activity.TestActivity_ct");
        intent.putExtras(bundle);
        findViewById(R.id.tv_contacts).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(intent);
                finish();
            }
        });

    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {

    }
}
